package com.itwmk;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@Slf4j
@SpringBootApplication
@MapperScan(basePackages = "com.itwmk.mapper")//指定扫描的mapper包下文件
@ServletComponentScan//开启filter扫描
@EnableTransactionManagement
@EnableCaching
public class RgApplication {
    public static void main(String[] args) {
        SpringApplication.run(RgApplication.class,args);
        log.info("项目启动成功！");
    }
}
